Repository navigation
Unarchive expense report when moving to a different workspace - #64784
srikarparsi merged 5 commits into
Conversation
|
@mananjadhav Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Code change looks fine. I'll have it test today. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb Chromemweb-chrome-unarchive-report.moviOS: HybridAppios-unarchive-report.moviOS: mWeb Safarimweb-safari-unarchive-report.movMacOS: Chrome / Safariweb-unarchive-report.movMacOS: Desktopdesktop-unarchive-report.mov |
|
Hey, I'll take a look at this tomorrow. |
|
@srikarparsi Can you please review this? |
|
Hey yes, sorry for the delay. Was looking at what needed to be done in the backend to make sure and I will finish that tomorrow. |
|
Hey @bernhardoj and @mananjadhav, I started on the backend PR today, I'll try to finish it tomorrow and review this PR |
|
Okay sure thanks for the update. |
|
should be done tomorrow |
|
Backend PR is in review - will leave an update on when that gets merged and gets deployed to production |
|
Backend PR has been merged, waiting on deploy |
|
@bernhardoj Can you please fix the conflicts? @srikarparsi You think we'll be able to merge this soon? |
|
Yes, the backend PR has been deployed to production. @bernhardoj and @mananjadhav if you can test with the current backend that would be great. |
|
Retested and works fine w.mp4 |
mananjadhav
left a comment
There was a problem hiding this comment.
@srikarparsi All yours.
|
@bernhardoj We've got conflicts again. |
|
Fixed |
srikarparsi
left a comment
There was a problem hiding this comment.
looks good to me, thanks for the test
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/srikarparsi in version: 9.1.84-1 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.1.84-4 🚀
|
| @@ -5671,6 +5671,22 @@ function buildOptimisticChangePolicyData(report: Report, policyID: string, repor | |||
| }, | |||
| }); | |||
|
|
|||
There was a problem hiding this comment.
We should have also optimistically added the policy's data to the search snapshot if the policy doesn't exist yet in the snapshot. Otherwise this can cause issues with canApprove always returning false, which prevents the Approve button from showing.
Explanation of Change
Fixed Issues
$ #63291
PROPOSAL: #63291 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Prerequisite: User has at least two workspace created.
Prerequisite 2: Both workspaces has delayed submissions and approvals enabled.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4